In the optimal calculation of pipe networks , using genetic algorithms to optimize , by natural number coding . then this thesis simply discuss the selection of initial genetic colony and the reasonable value of penalty function multiplier . it improve the constringency speed of genetic algorithms